package com.oddfar.campus.business.mapper;

import com.oddfar.campus.business.domain.entity.SensitiveEntity;
import com.oddfar.campus.common.core.BaseMapperX;
import com.oddfar.campus.common.core.LambdaQueryWrapperX;
import com.oddfar.campus.common.domain.PageResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhiyuan
 */
@Mapper
public interface SensitiveMapper extends BaseMapperX<SensitiveEntity> {

    default PageResult<SensitiveEntity> selectPage(SensitiveEntity sensitive) {

        return selectPage(new LambdaQueryWrapperX<SensitiveEntity>()
                .likeIfPresent(SensitiveEntity::getSensitiveName, sensitive.getSensitiveName())
                .eqIfPresent(SensitiveEntity::getStatus, sensitive.getStatus())
        );
    }

    /**
     * 查询信息墙列表的标签列表
     * @param contentIds
     */
    // List<SensitiveEntity> selectSensitiveListByContentIds(@Param("contentIds") List<Long> contentIds);
}




